import type { RouteRecordRaw } from 'vue-router';
import type { IRoleNavMenu } from '@/stores/roleRouter/type';

export type ISetFilterHasRolesRoutes = (routes: RouteRecordRaw[], roles: string[]) => any[];
export type IHasRoles = (route: RouteRecordRaw, roles: string[]) => boolean;
export type IFormatFlatteningRoutes = (routes: RouteRecordRaw[]) => IRoleNavMenu[];
export type ISetAddRoute = (routes: RouteRecordRaw[]) => void;
